From c78be4a19f775476381b6ecdc6beaa23ef2d4990 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Tue, 21 Mar 2006 21:21:06 +0000 Subject: [PATCH] use proper user specification for offsets, fixes newbie issue --- includes/SpecialContributions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index f627ca6825..80dab948e4 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -83,8 +83,7 @@ class contribs_finder { $sql = "SELECT rev_timestamp FROM $page, $revision $use_index " . "WHERE page_id = rev_page AND rev_timestamp > '" . $this->offset . "' AND " . - "rev_user_text = " . $this->dbr->addQuotes($this->username) - . $nscond; + $usercond . $nscond; $sql .= " ORDER BY rev_timestamp ASC"; $sql = $this->dbr->limitResult($sql, $this->limit, 0); $res = $this->dbr->query($sql); @@ -102,8 +101,7 @@ class contribs_finder { $nscond = $this->get_namespace_cond(); $sql = "SELECT rev_timestamp FROM $page, $revision $use_index " . "WHERE page_id = rev_page AND " . - "rev_user_text = " . $this->dbr->addQuotes($this->username) - . $nscond; + $usercond . $nscond; $sql .= " ORDER BY rev_timestamp ASC"; $sql = $this->dbr->limitResult($sql, $this->limit, 0); $res = $this->dbr->query($sql); -- 2.20.1